<template>
    <medical :buttonName="buttonName" @confirm="confirm" sty="background-color:red;border:0"></medical>
</template>
<script>
import medical from './medical'
export default {
    data(){
        return{
           msg:'',
           buttonName:'登录',
           sty:'background-color:red'
        }
    },
    components:{
        medical
    },
    methods:{
        confirm(thi){
            console.log(thi.innerHTML)
        }
    }
}
</script>